home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_44.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  135KB  |  816x1056  |  8-bit (256 colors)
OCR: WhisAnstraction therefore allovBeusterd onnaroudtinta qteeesoticodernti etborathoinondition metger the count runs out The simplest use for this instruction is in creating a delay: move. 1#1000,d0 delay: dbba d0,delay We move 1000 into op Then we decrement and branch to itself until op -1 The outcome of this is the DBR instruction in this piece of code will be executed 1001 times. Its important to note that making loop with the DBcc instruction will cause the loop to execute more time than the number you put in the register. you wanted this loop execute 0001 times, then op would have to loaded with 999 Because this instruction is a branch instruction, the offset of the label must fit into a signed pioM that must be in the range of- or 32767 bytes. If its outside this range, the assembler wi ...